#include <linux/module.h> 
#include <linux/init.h> 

static char *book_name = "dissecting Linux Device Driver";
static int num = 4000;

static int __init book_init(void) 
{ 
	printk(KERN_INFO "book name:%s\n",book_name);
	printk(KERN_INFO "book num:%d\n",num);
	return 0; 
} 
static void __exit book_exit(void) 
{ 
	printk(KERN_INFO "Book module exit\n");
} 

module_init(book_init);
module_exit(book_exit);

module_param(num,int,S_IRUGO);
module_param(book_name,charp,S_IRUGO);

MODULE_AUTHOR("Liubochao bochao.hit@gmail.com");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_DESCRIPTION("A simple Module for testing module params");
MODULE_VERSION("V1.0");



